// store.js
import { defineStore } from 'pinia'

export const useMainStore = defineStore('home', {
  state: () => {
    return { counter: 0 }
  },
  actions: {
    increment() {
      this.counter++
      console.log(this.counter)
    }
  }
})

export const useMainStoreHooks = () => {
  return useMainStore()
}
